<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>表单中元素</title>
	</head>
	<body>
		<form style="width: 50%;" action="stuReg" method="post">
			<input type="hidden" name="country" value="china" />

			<fieldset>
				<label>中意的课程</label>
				<input type="text" name="course" readonly value="课工场java课程" />
			</fieldset>
			<fieldset>
				<legend>基本信息</legend>
				<p><label for="mobile">手机号</label><input type="text" name="mobile" id="mobile" /></p>
				<p>
					<label for="addr">地址</label><input type="text" name="address" id="addr" />
				</p>
				<p>
					<label for="we">微信号</label><input type="text" name="wechat" id="we" />
				</p>
				<p>
					<label for="birthday">生日</label><input type="datetime-local" name="birthday" id="birthday" />
				</p>
			</fieldset>
			<fieldset>
				<label>昵称</label>
				<input type="text" name="nickName" value="dog" />
			</fieldset>
			<fieldset>
				<legend>姓名</legend>
				<input type="text" name="userName" size="8" maxlength="8" />
			</fieldset>
			<fieldset>
				<label>密码</label>
				<input type="password" name="pass" />
			</fieldset>
			<fieldset>
				<label>性别</label>
				<input type="radio" name="sex" value="male" checked="checked" />男
				<input type="radio" name="sex" value="female" />女
			</fieldset>
			<fieldset>
				<label>来自省份</label>
				<select name="province">
					<optgroup label="华东">
						<option value="shanghai">上海</option>
						<option value="anhui" selected="selected">安徽省</option>
						<option value="jiangsu">江苏省</option>
						<option value="fujian">福建省</option>
					</optgroup>
					<optgroup label="华南">
						<option value="gd">广东</option>
						<option value="gx">广西</option>
					</optgroup>
				</select>
			</fieldset>
			<fieldset>
				<legend>爱好</legend>
				<input type="checkbox" name="like" value="sing" />唱歌
				<input type="checkbox" name="like" value="dance" />跳舞
				<input type="checkbox" name="like" value="game" />游戏
				<input type="checkbox" name="like" value="study" checked />学习
			</fieldset>
			<fieldset>
				<label>自我介绍</label>
				<textarea name="selfINtro" cols="30" rows="9"></textarea>
			</fieldset>
			<fieldset>
				<legend>身份证照片</legend>
				<input type="file" name="idcard" />
			</fieldset>
			<fieldset>
				<legend>我们的协议</legend>
				<textarea name="xieyi" disabled>sdfsdf</textarea>
			</fieldset>
			<fieldset>
				<legend>电子邮箱</legend>
				<input type="email" name="youremail" />
			</fieldset>
			<fieldset>
				<legend>年龄</legend>
				<input type="number" max="140" min="10" name="age" />
			</fieldset>
			<fieldset>
				<input type="submit" value="注册" />
				<input type="button" value="普通按钮" />
				<input type="reset" value="重来" />
			</fieldset>
		</form>
	</body>
</html>
